package cn.sz.dzy.controller;

import cn.sz.dzy.service.IStockService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @description:
 * @author: DingZhenYun
 * @create: 2025-09-19 13:44
 **/
@RestController
public class StockController {
    @Resource
    private IStockService stockService;

    @GetMapping("/check/lock")
    public String checkAndLock(){
        this.stockService.checkAndLock();
        return "验库存并锁库存成功！";
    }
}
